//
//  TRoadPullRefreshViewController.h
//  TRoad
//
//  Created by hz on 12/5/13.
//  Copyright (c) 2013 com.117go. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "TRoadLoadingView.h"
#import "TRoadPullRefreshProtocol.h"
#import "TRoadLoadingHandler.h"

@interface TRoadPullRefreshViewController : UIViewController <UITableViewDataSource, UITableViewDelegate>

@property (nonatomic, strong) TRoadLoadingHandler *loadingHandler;


@property (nonatomic, weak) id<TRoadPullRefreshProtocol> refreshDelegate;

@property (nonatomic, strong) IBOutlet UITableView *tableView;

@property (nonatomic, strong) UIRefreshControl *TRDRefreshControl;

@property (nonatomic) BOOL enableMore;
@property (nonatomic) BOOL enableRefresh;

@property (nonatomic) BOOL isMoreLoading;
@property (nonatomic) BOOL isLoading;

/**
 *  指定UITableView额外的底部inset
 */
@property (nonatomic) CGFloat extraBottomInset;

- (void)stopLoading;
- (void)stopMoreLoading;

- (void)startLoadingProgrammatically;

@end
